package cutetd.model;

import java.util.Date;
import java.util.List;
import java.util.Set;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable ( identityType = IdentityType.APPLICATION, detachable = "true" )
public class M_Order {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private String keyString;
	
	@Persistent 
	private Date postDate;
	
	@Persistent
	private boolean boolGuest;
	
	@Persistent
	private String postUserEmail;
	
	@Persistent
	private String receiverName;
	
	@Persistent
	private String dormNo;
	
	@Persistent
	private String state;
	
	@Persistent(defaultFetchGroup="true")
	private Set<Key> goodsList;
	
	@Persistent
	private List<String> goodsNumList;
	
	@Persistent
	private float totalPrice;
	
	@Persistent
	private String sender;
	
	public String getKeyString() {
		return keyString;
	}

	public void setKeyString(String keyString) {
		this.keyString = keyString;
	}

	public Date getPostDate() {
		return postDate;
	}

	public void setPostDate(Date postDate) {
		this.postDate = postDate;
	}

	public boolean isBoolGuest() {
		return boolGuest;
	}

	public void setBoolGuest(boolean boolGuest) {
		this.boolGuest = boolGuest;
	}

	public String getReceiverName() {
		return receiverName;
	}

	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}

	public String getDormNo() {
		return dormNo;
	}

	public void setDormNo(String dormNo) {
		this.dormNo = dormNo;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Set<Key> getGoodsList() {
		return goodsList;
	}

	public void setGoodsList(Set<Key> goodsList) {
		this.goodsList = goodsList;
	}

	public float getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(float totalPrice) {
		this.totalPrice = totalPrice;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getPostUserEmail() {
		return postUserEmail;
	}

	public void setPostUserEmail(String postUserEmail) {
		this.postUserEmail = postUserEmail;
	}

	public List<String> getGoodsNumList() {
		return goodsNumList;
	}

	public void setGoodsNumList(List<String> goodsNumList) {
		this.goodsNumList = goodsNumList;
	}
}
